/**
 * Copyright (c) 2016-2019 人人开源 All rights reserved.
 *
 * https://www.renren.io
 *
 * 版权所有，侵权必究！
 */

package io.renren.modules.app.entity.user;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


/**
 * @author lym
 * @email 928185446qq.com
 */
@Data
@TableName("yc_user")
public class UserEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId
	private Integer id;
	/**
	 * 添加时间
	 */
	private Date addtime;
	/**
	 * 删除状态
	 */
	private Boolean deletestatus = false;
	/**
	 * 用户头像
	 */
	private String userPortrait;
	/**
	 * 账号名称
	 */
	private String accountName;

	@TableField(exist = false)
	private String age;
	/**
	 * 用户密码
	 */
	private String password;
	@TableField(exist = false)
	private String email;
	@TableField(exist = false)
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date birthdate;
	@TableField(exist = false)
	private String userName;
	@TableField(exist = false)
	private Integer sex;
	/**
	 * 盐
	 */
	private String salt;
	/**
	 * 移动电话
	 */
	private String mobile;
	/**
	 * 微信
	 */
	private String weixin;
	/**
	 * 邀请码
	 */
	private String inviteCode;
	/**
	 * 账号类型
	 */
	private Integer accountType;
	/**
	 * 最后登陆时间
	 */
	private Date lastTime;
	/**
	 * 用户状态
	 */
	private Integer userStatus;
	/**
	 * 个人简介
	 */
	private String userIndividual;

}
